				<!-- 顶部按钮 -->
				{loop $icons1 $row}
				<div id="iconeditor{$row['id']}" class="editor" style="">
					<div class="ng-scope">
					<!--页面标题设置-->
						<div class="app-header-setting">
							<div class="arrow-left"></div>
							<div class="app-header-setting-inner">
								<div class="panel panel-default">
									<div class="panel-body form-horizontal">
										<input type="hidden" name="place[{$row['id']}]" value="3" />
										<input type="hidden" name="type[{$row['id']}]" value="1" />
										<div class="form-group">
											<label class="col-xs-3 control-label"><span class="red">*</span>显示状态</label>
											<div class="col-xs-9">
												<input type="checkbox" value="{$row['status']}" name="status[]" data-id="{$row['id']}" {if $row['status'] == 1}checked{/if}>
											</div>
										</div>
										<div class="form-group">
											<label class="col-xs-3 control-label"><span class="red">*</span>按钮名称</label>
											<div class="col-xs-9">
												<input type="text" id="btnname{$row['id']}" name="btnname[{$row['id']}]" onkeyup="SwapTxt({$row['id']})" placeholder="按钮名称" value="{$row['name']}" class="form-control ng-pristine ng-untouched ng-valid">
											</div>
										</div>
										<div class="form-group ng-scope">
											<label class="control-label col-xs-3">链接地址</label>
											<div class="col-xs-9">
											<div class="ng-isolate-scope">
												<div class="dropdown link">
													<div class="input-group">
														<input type="text" value="{$row['url']}" id = "url{$row['id']}" name="url[{$row['id']}]" class="form-control" autocomplete="off">
														{template 'public/linkchose'}
													</div>
												</div>
											</div>
											</div>
										</div>										
										<div class="form-group">
											<label class="control-label col-xs-3"><span class="red">*</span>图标</label>
											<div class="col-xs-9">
												{template 'public/imgeschoses'}
												<div class="input-group ">
													<input type="text" name="iconpics[{$row['id']}]" id="iconpics{$row['id']}" value="{php echo tomedia($row['icon'])}" class="form-control" autocomplete="off" filename="" url="">
													<span class="input-group-btn">
														<button class="btn btn-default" type="button" onclick="showImageDialog{$row['id']}(this);">选择图片</button>
													</span>
												</div>
												<div class="input-group " style="margin-top:.5em;">
													<img src="{if $row['icon']}{php echo tomedia($row['icon'])}{else}./resource/images/nopic.jpg{/if}" onerror="" class="img-responsive img-thumbnail" width="150">
													<em class="close" style="position:absolute; top: 0px; right: -14px;" title="删除这张图片" onclick="deleteImage(this)">×</em>
												</div>
												<span class="help-block">推荐尺寸45*45左右,正方形图标</span>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>		
				</div>	
				{/loop}	
	            <!-- 魔方开始 -->
				{loop $icons2 $row}
				<div id="iconeditor{$row['id']}" class="editor" style="top: 200px !important;">
					<div class="ng-scope">
					<!--页面标题设置-->
						<div class="app-header-setting">
							<div class="arrow-left"></div>
							<div class="app-header-setting-inner">
								<div class="panel panel-default">
									<div class="panel-body form-horizontal">
										<input type="hidden" name="type[{$row['id']}]" value="1" />
										<input type="hidden" name="place[{$row['id']}]" value="4" />								
										<div class="form-group">
											<label class="col-xs-3 control-label"><span class="red">*</span>显示状态</label>
											<div class="col-xs-9">
												<input type="checkbox" value="{$row['status']}" name="status[]" data-id="{$row['id']}" {if $row['status'] == 1}checked{/if}>
											</div>
										</div>
										<div class="form-group">
											<label class="col-xs-3 control-label"><span class="red">*</span>按钮名称</label>
											<div class="col-xs-9">
												<input type="text" id="btnname{$row['id']}" name="btnname[{$row['id']}]" onkeyup="SwapTxt1({$row['id']})" placeholder="按钮名称" value="{$row['name']}" class="form-control ng-pristine ng-untouched ng-valid">
											</div>
										</div>
										<div class="form-group">
											<label class="col-xs-3 control-label">按钮颜色</label>
											<div class="col-xs-9">
												<div class="input-group">
													<div class="ng-isolate-scope">
														<div class="input-group">
															<input type="text" name="bzcolor[{$row['id']}]" value="{$row['color']}" class="form-control ng-pristine ng-valid ng-touched">
															<span class="input-group-addon" style="width: 35px; border-left: none; background-color: {$row['color']};"></span>
															<span class="input-group-btn">
															<button class="btn btn-default colorpicker{$row['id']}" type="button">选择颜色 
																<i class="fa fa-caret-down"></i>
															</button>
															<button class="btn btn-default colorclean" type="button">
																<span><i class="fa fa-remove"></i></span>
															</button>
															</span>
														</div>
													</div>
												</div>
												<script type="text/javascript">
													require(["jquery", "util"], function($, util){
														$(function(){
															$(".colorpicker{$row['id']}").each(function(){
																var elm = this;
																util.colorpicker(elm, function(color){
																	$(elm).parent().prev().prev().val(color.toHexString());
																	$(elm).parent().prev().css("background-color", color.toHexString());
																	$("#iconname{$row['id']}").css("color",color.toHexString());
																});
															});
															$(".colorclean").click(function(){
																$(this).parent().prev().prev().val("");
																$(this).parent().prev().css("background-color", "#FFF");
																$("#iconname{$row['id']}").css("color", "#FFF");
															});
														});
													});
												</script>
											</div>
										</div>										
										<div class="form-group">
											<label class="col-xs-3 control-label"><span class="red">*</span>按钮描述</label>
											<div class="col-xs-9">
												<input type="text" id="mfbzs{$row['id']}" name="mfbzs[{$row['id']}]" onkeyup="SwapTxt2({$row['id']})" placeholder="按钮描述" value="{$row['beizhu']}" class="form-control ng-pristine ng-untouched ng-valid">
											</div>
										</div>										
										<div class="form-group ng-scope">
											<label class="control-label col-xs-3">链接地址</label>
											<div class="col-xs-9">
											<div class="ng-isolate-scope">
												<div class="dropdown link">
													<div class="input-group">
														<input type="text" value="{$row['url']}" id = "url{$row['id']}" name="url[{$row['id']}]" class="form-control" autocomplete="off">
														{template 'public/linkchose'}
													</div>
												</div>
											</div>
											</div>
										</div>										
										<div class="form-group">
											<label class="control-label col-xs-3"><span class="red">*</span>图标</label>
											<div class="col-xs-9">
												{template 'public/imgeschoses'}
												<div class="input-group ">
													<input type="text" name="iconpics[{$row['id']}]" id="iconpics{$row['id']}" value="{php echo tomedia($row['icon'])}" class="form-control" autocomplete="off" filename="" url="">
													<span class="input-group-btn">
														<button class="btn btn-default" type="button" onclick="showImageDialogmf{$row['id']}(this);">选择图片</button>
													</span>
												</div>
												<div class="input-group " style="margin-top:.5em;">
													<img src="{if $row['icon']}{php echo tomedia($row['icon'])}{else}./resource/images/nopic.jpg{/if}" onerror="" class="img-responsive img-thumbnail" width="150">
													<em class="close" style="position:absolute; top: 0px; right: -14px;" title="删除这张图片" onclick="deleteImage(this)">×</em>
												</div>
												<span class="help-block">推荐尺寸45*45左右,正方形图标</span>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>		
				</div>	
				{/loop}
	            <!-- 列表开始 -->
				{loop $icons3 $row}
				<div id="iconeditor{$row['id']}" class="editor" style="top: 300px !important;">
					<div class="ng-scope">
					<!--页面标题设置-->
						<div class="app-header-setting">
							<div class="arrow-left"></div>
							<div class="app-header-setting-inner">
								<div class="panel panel-default">
									<div class="panel-body form-horizontal">
										<input type="hidden" name="type[{$row['id']}]" value="1" />
										<input type="hidden" name="place[{$row['id']}]" value="5" />								
										<div class="form-group">
											<label class="col-xs-3 control-label"><span class="red">*</span>显示状态</label>
											<div class="col-xs-9">
												<input type="checkbox" value="{$row['status']}" name="status[]" data-id="{$row['id']}" {if $row['status'] == 1}checked{/if}>
											</div>
										</div>
										<div class="form-group">
											<label class="col-xs-3 control-label"><span class="red">*</span>按钮名称</label>
											<div class="col-xs-9">
												<input type="text" id="btnname{$row['id']}" name="btnname[{$row['id']}]" onkeyup="SwapTxt1({$row['id']})" placeholder="按钮名称" value="{$row['name']}" class="form-control ng-pristine ng-untouched ng-valid">
											</div>
										</div>																			
										<div class="form-group ng-scope">
											<label class="control-label col-xs-3">链接地址</label>
											<div class="col-xs-9">
											<div class="ng-isolate-scope">
												<div class="dropdown link">
													<div class="input-group">
														<input type="text" value="{$row['url']}" id = "url{$row['id']}" name="url[{$row['id']}]" class="form-control" autocomplete="off">
														{template 'public/linkchose'}
													</div>
												</div>
											</div>
											</div>
										</div>										
										<div class="form-group">
											<label class="control-label col-xs-3"><span class="red">*</span>图标</label>
											<div class="col-xs-9">
												{template 'public/imgeschoses'}
												<div class="input-group ">
													<input type="text" name="iconpics[{$row['id']}]" id="iconpics{$row['id']}" value="{php echo tomedia($row['icon'])}" class="form-control" autocomplete="off" filename="" url="">
													<span class="input-group-btn">
														<button class="btn btn-default" type="button" onclick="showImageDialoglb{$row['id']}(this);">选择图片</button>
													</span>
												</div>
												<div class="input-group " style="margin-top:.5em;">
													<img src="{if $row['icon']}{php echo tomedia($row['icon'])}{else}./resource/images/nopic.jpg{/if}" onerror="" class="img-responsive img-thumbnail" width="150">
													<em class="close" style="position:absolute; top: 0px; right: -14px;" title="删除这张图片" onclick="deleteImage(this)">×</em>
												</div>
												<span class="help-block">推荐尺寸25*25左右,正方形透明底图标</span>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>		
				</div>	
				{/loop}	
				<script src="{MODULE_URL}public/web/js/diyjs.js" type="text/javascript"></script>